package chapter11;

/**
 * Created by V5470-I5 on 2016/4/11.
 */

public class Tortoise implements Runnable {
    private int totalStep;
    private int step;

    public Tortoise(int totalStep){
        this.totalStep=totalStep;
    }
    @Override
    public void run(){
        while(step<totalStep){
            step++;
            System.out.printf("乌龟跑了%d步...%n",step);
        }
    }
}
